
import  requests

# cookie 可以从界面操作抓包中拷贝，也可以从上一个脚本拷贝
h = {'Cookie': 'BAGSESSIONID=290ba2a3-bcc9-4ea2-b6a1-9a710d7ed313; BAG_EVENT_CK_KEY_="2780487875@qq.com"; BAG_EVENT_CK_TOKEN_=2440f5d17af838308ba4b390db81af38; BAG_EVENT_TOKEN_=02de735f68204d51009e7edda78e58c13a3fcdd1; JSESSIONID=6C279F2C6F2DCC089310434051734081'}
r = requests.get("https://www.bagevent.com/account/dashboard", headers=h)
assert  "<title>百格活动 - 账户总览</title>" in r.text
print(r.request.headers)